package com.zhuiyun.educations.api.order.service;

import com.zhuiyun.educations.api.order.entity.Order;
import com.zhuiyun.educations.common.response.CommonResult;
import com.zhuiyun.educations.util.pageUtil.PageRequest;

/**
 * @ClassName OrderService
 * @Description TODO 订单管理
 * @Author ys
 * @Date 2023/6/16 8:28
 **/
public interface OrderService {
    /**
     * @Author ys
     * @Description TODO 分页查询
     * @Date 2023/6/26 14:09
     * @Return CommonResult
     * @param
     */
    CommonResult getFilePrice(PageRequest pageRequest);
    CommonResult getFilePriceById(Integer courseId,Integer userId);
    CommonResult getorderById(Integer courseId,Integer userId);
    /**
     * @Author cjl
     * @Description TODO 前端查询用户订单
     * @Date 2023/7/5 17:25
     * @Return com.zhuiyun.educations.common.response.CommonResult
     * @param userId
     * @param orderState
     */
    CommonResult selectOrderEntityDTO(Integer userId, Integer orderState);
    CommonResult add(Order order);
    CommonResult update(Integer id);
    CommonResult updatestate(Integer id);
}
